﻿using System.Collections.Generic;
using Identity.Searcher;

namespace Fee.Stores
{
    public class StationSearcher : PermissionSearcher
    {
        public StationType? Type { get; set; }

        public StationStatus? Status { get; set; }

        public int? DistrictId { get; set; }
        public string StationName { get; set; }
    }

    public interface IStationStore<T> where T : FeeDbContext
    {
        Station GetById(int id);
        Station GetByCode(string code, bool track = true);
    
        IEnumerable<Station> List(StationSearcher searcher, out int total);
        

    }
}